const router = require('koa-router')()
const Mock = require('mockjs')


const data = Mock.mock({
  "list|5": [{
    "title|+1": ["全部", '代付款', "待发货", "待收货", "待评价"],
    "children|10-20": [{
      "id": "@id",
      "image": "@image(120x120, @color)",
      "title": "@ctitle",
      "word": "@cword(10, 20)",
      "count|1-10": 1,
      "price|10-100": 1
    }]
  }] 
})

router.get('/order/list', ctx => {
  ctx.body = {
    code: 200,
    data: data.list
  }
})
module.exports = router
